#ifndef RECORD_H_
#define RECORD_H_

#include "sqlite3.h"

#include <jni.h>

#ifdef __cplusplus
extern "C" {
#endif

void record_init(JNIEnv* env);

int record_query(sqlite3* db, jlong type, jstring query, jint limit, jstring id, JNIEnv* env, sqlite3_stmt** pStatement);

void record_copy(sqlite3_stmt* statement, jobject record, JNIEnv* env);

int record_insert(sqlite3* db, jobject record, JNIEnv* env);

int record_bulk_insert(sqlite3* db, jobjectArray records, JNIEnv* env);

int record_delete(sqlite3* db, jlong type, jlong dataid, jstring id, JNIEnv* env);

#ifdef __cplusplus
}
#endif

#endif
